<template>
  <div>
    <el-dialog
      title="订单详情"
      :visible.sync="centerDialogVisible"
      width="50%"
      @close="cancel"
      center>
      <div>
        <div class="title">订单信息</div>
        <div style="display: flex;justify-content: space-around">
          <div class="left">
            <div class="labelItem"><span>订单编号：</span>科一科</div>
            <div class="label"><span>下单时间：</span>科一科</div>
            <div class="labelItem"><span>产品名称：</span>科一科</div>
            <div class="label"><span>所属渠道：</span>科一科</div>
            <div class="labelItem"><span>第三方订单号：</span>科一科</div>
          </div>
          <div class="right">
            <div class="labelItem"><span>授信金额(元)：</span>科一科</div>
            <div class="label"><span>放款金额(元)：</span>科一科</div>
            <div class="labelItem"><span>订单进度：</span>科一科</div>
            <div class="label"><span>订单状态：</span>科一科</div>
          </div>
        </div>
      </div>
      <div style="margin-top: 20px">
        <div class="title">客户信息</div>
        <div style="display: flex;justify-content: space-around">
          <div class="left">
            <div class="labelItem"><span>公司名称：</span>科一科</div>
            <div class="label"><span>申请人姓名：</span>科一科</div>
            <div class="labelItem"><span>申请人身份证：</span>科一科</div>
            <div class="label"><span>申请期限：</span>科一科</div>
            <!--<div><span>第三方订单号：</span>科一科</div>-->
          </div>
          <div class="right">
            <div class="labelItem"><span>申请人身份：</span>科一科</div>
            <div class="label"><span>申请人手机：</span>科一科</div>
            <div class="labelItem"><span>申请城市：</span>科一科</div>
            <div class="label"><span>申请金额：</span>科一科</div>
          </div>
        </div>
      </div>
      <div style="margin-top: 20px">
        <div class="title">佣金结算</div>
        <div style="display: flex;justify-content: space-around">
          <div class="left">
            <div class="labelItem"><span>结算金额(元)：</span>科一科</div>
            <div class="label"><span>返佣金额(元)：</span>科一科</div>
            <div class="labelItem"><span>返佣状态：</span>科一科</div>
          </div>
          <div class="right">
            <div class="labelItem"><span>所属客户经理：</span>科一科</div>
            <div class="label"><span>预计返佣时间：</span>科一科</div>
            <div class="labelItem"><span>实际返佣时间：</span>科一科</div>
          </div>
        </div>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data () {
    return {
      centerDialogVisible: false
    }
  },
  props: {
    show: {
      type: Boolean,
      default: () => false
    }
  },
  watch: {
    show: {
      handler(val) {
        this.centerDialogVisible = val
      }
    }
  },
  methods: {
    cancel() {
      this.centerDialogVisible = false
      this.$emit('cancel', false)
    }
  }
}
</script>

<style lang="scss" scoped>
/deep/ .el-dialog__title {
  color: #222222;
  font-size: 16px;
  font-weight: 500;
}
.title {
  font-weight: 500;
  font-size: 18px;
  color: #222222;
  margin-bottom: 20px;
}
.left {
  width: 50%;
  margin-right: 30px;
  .labelItem {
    text-align: center;
    padding: 15px 0;
    background: #F5F5F5;
    color: #222222;
    span {
      color: #999999;
    }
  }
  .label {
    text-align: center;
    padding: 15px 0;
    color: #222222;
    span {
      color: #999999;
    }
  }
}
.right {
  width: 50%;
  .labelItem {
    text-align: center;
    padding: 15px 0;
    background: #F5F5F5;
    color: #222222;
    span {
      color: #999999;
    }
  }
  .label {
    text-align: center;
    padding: 15px 0;
    color: #222222;
    span {
      color: #999999;
    }
  }
}
</style>
